﻿using Contracts;
using LPLS.PluginCommon;
using PLCAlarmRuleConfigModule.ViewModels;
using PLCAlarmRuleConfigModule.Views;
using Prism.Ioc;
using Prism.Modularity;
using Prism.Navigation.Regions;
using System.Reflection;

namespace PLCAlarmRuleConfigModule
{
    public class PLCAlarmRuleConfigModuleModule : ModuleBaseModule
    {
        public PLCAlarmRuleConfigModuleModule(IRegionManager regionManager, INavigationRegistry navigationRegistry, IModuleEventAggregator moduleEventAggregator) : base(regionManager, navigationRegistry, moduleEventAggregator)
        {

        }

        public override Assembly Initialize()
        {
            return Assembly.GetExecutingAssembly();
        }

        public override void LoadRegisterTypes(IContainerRegistry containerRegistry)
        {
            base.LoadRegisterTypes(containerRegistry);
            containerRegistry.RegisterForNavigation<VariableConfigView, VariableConfigViewModel>();
        }
    }
}